home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d17
/
wrap.arc
/
WRAP.DOC
< prev
Wrap
Text File
|
1986-03-06
|
3KB
|
66 lines
This is a god send for printing out doc files. The main advantage is
formatting the doc file to skip over perforations. I seem to always
having a line of text cut in two when I seperate the pages. Use it
as is(it does the job as is on my epson printer) or If you insist
on hacking then the source code and patch points are in the wrap.c
file.
Thanks to OKKUG where I found this gem.
-Andrew Putnam
WRAP
----
Printing Utility
This utility will print any number of files with newlines put
in at the appropriate column. The default column is 80. Form feeds are
also optional by specifying a pagelength. The default is no form feeds.
OPTIONS:
-wN Sets the page width to N characters wide. Default = 80
-pN Sets the page length to N lines long. Default = 60
If N = 0 then no formfeeds are inserted.
-h Print the filename and page number at the top of each page.
-tN Expand tab characters to every N'th column.
-dstring Will print string in the date field of each heading. The
heading option is automatically specified with the -d option.
NOTE: String must not contain blanks. It is reasonable
to enter the date as SEPT/3/82---2:00pm
-lN Start printing at line N.
-iN Will indent each line (including headings) N spaces.
-bN Will set the file buffer size to N bytes.
BUGS: - Sometimes an extra formfeed is inserted at the end of the run?
- Tabs can make the line extend past the left margin
- A carriage return not expected to do a line feed
- Headings must all fit on a line
- It should be made recusive so all characters that expand (ie tabs)
are correctly handled
Patch Locations for WRAP switches
Version 1.4 Sept/21/82
Parameter Wrap Patch Default Value
Argument Location Decimal Hex Bytes
Buffer Size -b4096 0103 4096 00 10
Page Width -w80 0105 80 50 00
Page Length -p60 0107 60 3C 00
Heading flag (Default: off) -h 0109 0 00 00
Tabs flag (Default: off) -t 010B 0 00 00
Tab Size -t8 011D 8 08 00
Start line number -l0 011F 0 00 00
Indent column -i0 0121 0 00 00
The values of these parameters can be altered by patching the WRAP
object file. Use DDT to modify the desired options, exit with ^C, then
type: SAVE 22 WRAP.COM
to save the modified object file.